<template>
  <div>
    御剑乘风来,除魔天地间!

    <input type="text" v-focus />
    <h1 v-ss="val">我是一个局部指令</h1>
    <FatherCom></FatherCom>
  </div>
</template>
<script>
import FatherCom from './components/Father.vue'
export default {
  name: 'app',
  components: {
    FatherCom
  },
  data () {
    return {
      val: '我改名字了'
    }
  },
  directives: {
    ss: {
      inserted (el, binding) {
        el.innerHTML = binding.value
      }
    }
  },
  created () {


  },
  computed: {

  },
  methods: {

  }
}
</script>
<style lang='less'  scoped>
</style>
